]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: Don't special case resetting cursor
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 8 Oct 2025 10:00:49 +0000 (12:00 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 4 Nov 2025 17:55:32 +0000 (18:55 +0100)
The case expressed in the comment does not seem to apply anymore,
we can reset the cursor as expected on every leave event.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3912>

js/ui/screenshot.js

index abc324b29561663f5c9c8d34541c8e7039e3a8e1..09a204b41563fbed2d2920226591e2406105dc2f 100644 (file)
@@ -716,12 +716,7 @@ const UIAreaSelector = GObject.registerClass({
     }
 
     vfunc_leave_event(event) {
-        // If we're dragging and go over the panel we still get a leave event
-        // for some reason, even though we have a grab. We don't want to switch
-        // the cursor when we're dragging.
-        if (!this._dragButton)
-            global.display.set_cursor(Meta.Cursor.DEFAULT);
-
+        global.display.set_cursor(Meta.Cursor.DEFAULT);
         return super.vfunc_leave_event(event);
     }
 });